package com.lol.controller;

import com.lol.model.EbProduct;
import com.lol.model.EbProductCategory;
import com.lol.service.ProductlistService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
@RequestMapping("productlist")
public class ProductlistController {
    @Resource
    private ProductlistService productlistService;

    @RequestMapping("/info")
    public  String info(Model model,int epcid){
        System.out.println("Productlistinfo的info方法。。。。epcid"+epcid);
        EbProductCategory productlistinfo = productlistService.info(epcid);
        model.addAttribute("productlistinfo" , productlistinfo);
        return "product-list";
    }

}
